﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Data.Extensions;
using ModernChannel.Configuration;
using ModernChannel.Model.Model;

namespace ModernChannel.Data.DBConfig
{
    public class ShippingConfiguration : DBConfig<ShippingInfo>
    {
        public ShippingConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k =>k.ShiptoCode);
            Property(c => c.ShiptoCode).HasMaxLength(50).IsRequired();
            Property(c => c.ShiptoName).HasMaxLength(150).IsRequired();
            Property(c => c.BilltoCode).HasMaxLength(30).IsRequired();
        }
    }
}
